import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
import router from './router'
import store from './store'
import api from './utils/api/'
import VConsole from 'vconsole'
import VueLazyload from 'vue-lazyload'
import environType from './utils/environment/'

Vue.prototype.$api = api
// import VueAxios from 'vue-axios'
// import qs from 'querystring'
// import bridge from './bridge.js'
// import versionCompare from './versionCompare.js'
// // import VConsole from 'vconsole'

/***
 * ! Ant Design of Vue
 * ^ https://www.antdv.com/docs/vue/introduce-cn/
*/
// import { DatePicker } from 'ant-design-vue';
import { Input ,message,Button,Menu,Table,Icon,Select,Upload,Modal} from 'ant-design-vue';
Vue.use(Input);
Vue.use(Button);
Vue.use(Menu);
Vue.use(Table);
Vue.use(Icon);
Vue.use(Select);
Vue.use(Upload);
Vue.use(Modal);

Vue.prototype.$confirm = Modal.confirm;
Vue.prototype.$message = message;
message.config({

    top: `150px`,
    duration: 2,
});



 
if (environType =='dev' || environType =='pre') {
    new VConsole()
}

// Vue.use(VueAxios, http)
Vue.use(VueLazyload)
Vue.use(VueAxios, axios)
Vue.config.productionTip = false




new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
